<html>
<head>
    <title>成功页面</title>
    <meta charset="utf-8"></meta>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/twitter-bootstrap/4.1.3/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <h3 class="text-center">
        订单详情列表
    </h3>
    <div class="row clearfix">

        <div class="col-md-4 column">

            <table class="table table-bordered">
                <thead>
                <tr>
                    <th>
                        订单id
                    </th>
                    <th>
                        订单总金额
                    </th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>
                        ${orderDTO.orderId}
                    </td>
                    <td>
                        ${orderDTO.orderAmount}
                    </td>

                </tr>
                </tbody>
            </table>
        </div>
        <div class="col-md-12 column">

        <table class="table table-bordered">
                <thead>
                <tr>
                    <th>
                        商品id
                    </th>
                    <th>
                        商品名称
                    </th>
                    <th>
                        价格
                    </th>
                    <th>
                        数量
                    </th>
                    <th>
                        总额
                    </th>
                </tr>
                </thead>
                <tbody>
                    <#list orderDTO.orderDetailList as orderDetail>
                        <tr>
                            <td>${orderDetail.productId}</td>
                            <td>${orderDetail.productName}</td>
                            <td>${orderDetail.productPrice}</td>
                            <td>${orderDetail.productQuantity}</td>
                            <td>${orderDetail.productQuantity * orderDetail.productPrice}</td>
                        </tr>
                    </#list>
                </tbody>
            </table>
        </div>

        </div>
    <div class="col-md-12 column">
        <#--020*84350888-->
             <#if orderDTO.getOrderStatusEnum().msg == "新订单">
        <a href="/shorg/order/finish?orderId=${orderDTO.orderId}" type="button" class="btn btn-lg btn-primary">完成订单</a>
        <a href="/shorg/order/cancle?orderId=${orderDTO.orderId}" type="button" class="btn btn-lg btn-danger">取消订单</a>
            </#if>
    </div>
    </div>
</div>
</body>
</html>